package com.codechen.scaffold.books.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName("bookwithuser")
@Data
public class BookWithUser implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private Long bookId;
    private Long userId;
    private String isbn;
    private String bookName;
    private String nickName;
    @JsonFormat(locale="zh",timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date lendtime;
    @JsonFormat(locale="zh",timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deadtime;

    private Date actualReturnDate;
    private Integer prolong;

    /**
     * 1-已归还，0-未归还
     */
    private Integer status;
}
